def test_bpm_analysis_storage(ai_analyzer, database_session):
    bpm = ai_analyzer.analyze("test_song.mp3")
    database_session.save_bpm("test_song.mp3", bpm)
    assert database_session.get_bpm("test_song.mp3") == bpm